import sys

print type(sys.version_info)

#module sys
#class  version_info
#attribute major...

print sys.version_info.major
print sys.version_info.minor
print sys.version_info.micro
print sys.version_info.releaselevel
print sys.version_info.serial

print "############################"

print sys.version_info[0]
print sys.version_info[1]
print sys.version_info[2]
print sys.version_info[3]
print sys.version_info[4]
